<?php
/**
 * Implements hook_rules_event_info().
 */
function shusy_store_order_period_rules_event_info() {
  return [
    'shusy_store_order_period_rules_event_period' => [
      'label' => t('账期解锁'),
      'group' => t('shusy_store_order_period'),
      'variables' => [
        'period' => [
          'type' => 'shusy_store_order_period',
          'label' => t('Period'),
        ],
      ],
    ],
  ];
}

/**
 * Implements hook_rules_action_info().
 */
function shusy_store_order_period_rules_action_info() {
  return [
    'shusy_store_order_period_rules_action_period' => [
      'label' => t('记录订单账期'),
      'parameter' => [
        'order' => [
          'type' => 'shusy_store_order',
          'label' => t('Order'),
        ],
      ],
      'group' => t('shusy_store_order_period'),
    ],
  ];
}
